var express = require("express");
var fs = require("fs");
var router = express.Router();

router.get("/taobao", function(req, res) {
    var rs = fs.createReadStream("./data/taobao.json");
    var content = "";
    rs.on("data", function(data) {
        content = content + data;
    })
    rs.on("end", function() {
        var names = JSON.parse(content);
        res.render("taobaosc.ejs", names);
    })
});
module.exports = router;